﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushJScript.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCore.css" />
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreEclipse.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>主页设置</h3>
    <b>1.配置</b><br/>
    主页设置在nfinal.json中。<br />
    server节的indexDocument。<br />
    <pre class="brush:xml;">
    "server": {
        //地址，主要用于外网回调等
        "url": "http://www.domain.com",
        //首页设置
        "indexDocument": "/Index.html"
      }
    </pre>
    <b>2.使用方式</b><br/>
    例如：以下的Url为"/Index/Index.html",<br />
    则server.indexDocument改为此值，网站只需输入域名即可访问。<br />
    <pre class="brush:csharp;">
        public IndexController : BaseController
        {
            public void Index()
            {
                this.Write("首页");
            }
        }
    </pre>
</body>
</html>